package oop.exer;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Employee
 * Package: oop.exer
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-10
 * Time: 22:03
 */

public class Employee {

    //属性(成员变量)
    int id; //编号
    String name; //姓名
    int age; //年龄
    double salary; //薪资

    //定义方法 用户显示员工属性信息
    public void show() {
        System.out.println("id = " + id + ",name = " + name +
                ", age = " + age + ", salary = " + salary);
    }


}
